package com.dz.lm.dao.talkComment.write;


import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.WriterRepository;
import com.dz.lm.domain.talkcomment.TalkComment;

@WriterRepository("writeTalkCommentDao")
public interface TalkCommentDao {
    /**
     * 根据主键删除
     * @param commentid
     * @return
     */
    int deleteByPrimaryKey(Integer commentid)throws DaoException;

    /**
     * 新增
     * @param record
     * @return
     */
    int addTaklComment(TalkComment record)throws DaoException;

    /**
     * 更新
     * @param record
     * @return
     */
    int updateTaklComment(TalkComment record)throws DaoException;

}